#include "myThread.h"
#include <process.h>

MyThread::~MyThread()
{
}

void MyThread::start()
{
	unsigned int threadaddr;
	_beginthreadex(NULL, 0, threadEntry, this, 0, &threadaddr);
}

UINT MyThread::threadEntry(LPVOID pParam)
{
	MyThread *pthis = reinterpret_cast<MyThread *> (pParam);
	return pthis->threadWork();
}
